<?php $this->load->view("common/page_header");?>
<div id="body_main">
	<div id="admin_header">
		<?php $this->load->view('common/admin_header'); ?>
		<div class="top_cleft">
			<ul></ul>
			<div class="clear"></div>
		</div>
	</div>
	<div id="admin_content">
		<div id="admin_navigator">
			<ul class="navigator">
				<li class="current"><a href="/console/message">发信息</a></li>
				<li><a href="/console/message/records">已发信息</a></li>
				<li><a href="/console/message/records?type=group">群组信息</a></li>
				<li><a href="/console/message/records?type=person">个人信息</a></li>
			</ul>
		</div>
		<div id="admin_body">
			<form method="post" action="">
				<div class="form_row" style="position:relative;overflow:visible;">
					<label class="input_label">收件人：</label>
					<input class="input_text" type="text" id="msg_to" name="msg_to" style="width:250px"/>
					<a id="show_friends_list" class="margin_left15" href="javascript:void(0)">收信人群组</a>
					<style>#friends_list li:first-child:hover{background-color:#bfbfbf}</style>
					<ul id="friends_list">
						<li to="all">全部会员</li>
						<li to="identified">身份证验证会员</li>
						<li to="expert">行家验证会员</li>
						<li to="normal">一般会员</li>
<!--						<li class="escape"><a href="###">+自建群组</a></li>-->
					</ul>
				</div>
				<div class="form_row">
					<label class="input_label">标题：</label>
					<input class="input_text" type="text"  name="subject" style="width:250px"/>
				</div>
				<div class="form_row">
					<label class="input_label">正文：</label>
					<textarea class="input_textarea" name="content"></textarea>
				</div>
				<div class="form_action">
					<input type="submit" class="input_button" value="发送" />
				</div>
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<script>
		$('#show_friends_list').click(function(event){
			$('#friends_list').toggle();
			event.stopPropagation();
		});
		$('#friends_list').find('li[class!="escape"]').click(function(event){
			var $this = $(this);
			var name = $this.attr('to');
//			var current_name = $('#msg_to').val();
//			if (current_name != '') {
//				name = current_name + ';' + name;
//			}
			$('#msg_to').val(name);
			$('#friends_list').hide();
			event.stopPropagation();
		});
		$(document).click(function(){
			$('#friends_list').hide();
		});
	</script>
	<?php $this->load->view("common/footer");?>	
</div>
	
<?php $this->load->view("common/page_footer");?>